source path
quit -sim

if [file exists work] {
	file delete -force work
}

if {![file exists work]} {
		vlib work 
		vmap work ./work
	}

vlog  -work  work \
		$src_path/*.v	\
		$tb_path/*.sv
	
# Start evaluation test
#vsim -voptargs="acc" -nowlfopt -t 1ns $name -l log.txt
vsim -pli novas_fli.so -nowlfopt -t 1ns $name -l log.txt

#View the simulation results
view structure
view signals
view wave
quietly WaveActivateNextPane {} 0
add wave -noupdate -radix hexadecimal /$name/*
quietly WaveActivateNextPane {} 0
add wave -noupdate -radix hexadecimal /$name/dut/*
#quietly WaveActivateNextPane {} 0
add wave -noupdate -radix hexadecimal /$name/dut/Dual_model_inst/*
quietly WaveActivateNextPane {} 0
#add wave -divider {Sigle_model}
add wave -noupdate -radix hexadecimal /$name/dut/dual_all_manage_inst/*
#quietly WaveActivateNextPane {} 0
#add wave -divider {CRC8_inst}
#add wave -noupdate -radix hexadecimal /$name/dut/Sigle_model_inst/CRC8_inst/*
run 200us

